package org.example;

import org.example.config.SpringConfig;
import org.example.service.BookDaoService;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
/**
 * Hello world!
 */
public class App2
{
    public static void main( String[] args )
    {
        AnnotationConfigApplicationContext  ctx = new AnnotationConfigApplicationContext(SpringConfig.class);
        BookDaoService bookDaoService = ctx.getBean(BookDaoService.class);
        bookDaoService.save();
    }
}
